package com.qk.mangement.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qk.entity.Course;
import com.qk.entity.CourseQueryListByPageDto;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Date:2025/10/9
 * Author:zxc
 * Description
 */
@Mapper
public interface CourseMapper extends BaseMapper<Course> {
    void deleteById(Integer id);

    void addCourse(Course course);

    Course queryById(Integer id);

    int updateById(Course course);

    List<Course> queryAll();

    List<Course> queryBySubject(Integer subject);

    Integer isExistCustomer(Integer id);

    List<Course> queryPage(CourseQueryListByPageDto courseQueryListByPageDto);

}
